import request from "@/utils/request"
//查询全部
export function queryAll() {
  return request({
    // url: `/joinservice/join-dept/getAllDepts`,
    url: `/joinservice/join-dept/getDeptByClubId`,
    method: 'GET',
  })
}
  //新增
  export function add(from) {
    return request({
      url: `/joinservice/join-dept/addDept`,
      method: 'POST',
      data:from
    })
  }
 //修改
export function mod(id,from) {
    return request({
      url: `/joinservice/join-dept/updateDeptById/${id}`,
      method: 'PUT',
      data:from
    })
  }
  //删除
  export function del(id) {
    return request({
      url: `/joinservice/join-dept/deleteDeptById/${id}`,
      method: 'DELETE',
    })
  }